package com.cyz.service;

import java.util.List;

import com.cyz.pojo.User;

public interface UserService {
	public void  validate(String userName,String password) throws Exception;//��֤�û���½
	public void  register(String userName,String password,String phone,String address)throws Exception;//ע�����û�
	/////////////以下方法未实现
	public User getUserByName(String userName);
	public Integer getUserIdByName(String userName);
	public void addUser(User user); //添加用户
	public void updateUser(User user); //更新用户信息
	public User findUserById(Integer userId); //通过用户ID查找用户
	public Integer getUserIdByUserName(String userName);
	public List<User> getAllUser();
	public void deleteUser(User user);//删除用户
	public void updateInfo(Integer id,String userName,String mobile,String address);
	public void changePassword(Integer id, String newPassword);
	
}
